package com.lzy.product.apis.impl;

import com.lzy.product.apis.ProductYieldRatioServiceApi;
import com.lzy.product.dtos.ProductYieldRatioDto;
import com.lzy.product.service.ProductYieldRatioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by WIN7 on 2017/12/28.
 */
@Service
public class ProductYieldRatioServiceApiImpl implements ProductYieldRatioServiceApi{

    @Autowired
    ProductYieldRatioService productYieldRatioService;

    @Override
    public Long insert(ProductYieldRatioDto dto) {
        return productYieldRatioService.insert(dto);
    }

    @Override
    public Boolean update(ProductYieldRatioDto dto) {
        return productYieldRatioService.update(dto);
    }

    @Override
    public Boolean delete(Long id) {
        return productYieldRatioService.delete(id);
    }

    @Override
    public Boolean remove(Long id) {
        return productYieldRatioService.remove(id);
    }

    @Override
    public ProductYieldRatioDto findById(Long id) {
        return productYieldRatioService.findById(id);
    }

    @Override
    public List<ProductYieldRatioDto> query(ProductYieldRatioDto dto) {
        return productYieldRatioService.query(dto);
    }

    @Override
    public List<ProductYieldRatioDto> queryListByProductId(Long productId) {
        return productYieldRatioService.queryListByProductId(productId);
    }

    @Override
    public Integer delByProductId(Long productId) {
        return productYieldRatioService.delByProductId(productId);
    }
}
